Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove unnecessary Arc in SessionAllocator #38

Merged
merged 6 commits into from
Oct 23, 2023

Conversation

augustoccesar
Copy link
Collaborator

Description

Previously the SessionAllocator was designed to have an Arc<dyn StringStore>, which caused a Clippy issue regarding internal of Arc not being Send or Sync.
For the use case of SessionAllocator, it doesn't need to have an internal Arc to the StringStore, a simple reference seems to be enough.

This also removes the need to have a wrapper struct that holds an Arc to the StringStore.
Will keep the same structure to avoid changing the ergonomics around the feature.
@augustoccesar augustoccesar self-assigned this Oct 22, 2023
@augustoccesar augustoccesar merged commit 534aa59 into main Oct 23, 2023
3 checks passed
@augustoccesar augustoccesar deleted the refactor/restructure-session-allocator branch October 23, 2023 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants